projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd3afa5
)
cli: use the new json-c library name
author
Felix Fietkau
<
[email protected]
>
Wed, 29 May 2013 10:53:17 +0000
(12:53 +0200)
committer
Felix Fietkau
<
[email protected]
>
Wed, 29 May 2013 10:53:22 +0000
(12:53 +0200)
Signed-off-by: Felix Fietkau <
[email protected]
>
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 22027ec3b9b6f1822e7dcce8455ad002bacbc923..e3b150b7310eef35a022a02a742b9e8459e1a902 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-23,9
+23,10
@@
TARGET_LINK_LIBRARIES(ubus ubox)
ADD_EXECUTABLE(ubusd ubusd.c ubusd_id.c ubusd_obj.c ubusd_proto.c ubusd_event.c)
TARGET_LINK_LIBRARIES(ubusd ubox)
+find_library(json NAMES json-c json)
ADD_EXECUTABLE(cli cli.c)
SET_TARGET_PROPERTIES(cli PROPERTIES OUTPUT_NAME ubus)
-TARGET_LINK_LIBRARIES(cli ubus ubox blobmsg_json
json
)
+TARGET_LINK_LIBRARIES(cli ubus ubox blobmsg_json
${json}
)
ADD_SUBDIRECTORY(lua)
ADD_SUBDIRECTORY(examples)